ApplicationError.create = function(params) {
	email_window = window.open('/email.html', null, "width=750,height=680,scrollbars=yes,resizable=yes");
	if(!email_window){
		alert('Your pop-up blocker is preventing us from showing\n'+
			  ' what a DamnIT error email looks like.  Please change your setings and refresh the page!');
		return;
	}
	
	window.insert_into_email_window = function() {
		email_window.insert_subject(params.error.subject);
		email_window.insert_content(params.error.content);
	}
}